package com.njbdqn.ALi.zjg.dao;

import org.njbdqn.ali.database.SqlTemplate;

public class GreatDAO {
	private SqlTemplate template;
	
	public GreatDAO(){
		template = new SqlTemplate();
	}
	
	public int modify(int commentid){
		String sql="update comment set great = great+1 where commentid=?";
		return template.update(sql, new Object[]{commentid});
	}
	
}
